import request from '@/utils/request'

/**
 * 纪念馆分类列表
 * @param {Object} params 
 */
export function queryCategoryPage(params) {
  return request({
    url: '/system/category/list',
    method: 'get',
    params: params
  })
}


/**
 * 纪念馆分类导出
 * @param {String} id 
 */
export function categoryExport(data) {
  return request({
    url: '/system/category/export',
    method: 'post',
    data: data
  })
}


/**
 * 纪念馆分类详情
 * @param {String} id 
 */
export function queryCategoryDetail(id) {
  return request({
    url: '/system/category/' + id,
    method: 'get'
  })
}

/**
 * 新增纪念馆分类
 * @param {Object} data 
 */
export function addCategory(data) {
  return request({
    url: '/system/category',
    method: 'post',
    data: data
  })
}


/**
 * 编辑纪念馆分类
 * @param {Object} data 
 */
export function editCategory(data) {
  return request({
    url: '/system/category',
    method: 'put',
    data: data
  })
}


/**
 * 删除纪念馆分类
 * @param {String} ids 
 */
export function deleteCategory(ids) {
  return request({
    url: '/system/category/' + ids,
    method: 'delete',
  })
}


/**
 * 隐藏纪念馆分类
 * @param {String} ids 
 */
export function hideCategory(ids) {
  return request({
    url: '/system/category/hidecategorys/' + ids,
    method: 'put',
  })
}

/**
* 显示纪念馆分类
* @param {String} ids 
*/
export function showCategory(ids) {
  return request({
    url: '/system/category/showcategorys/' + ids,
    method: 'put',
  })
}